cmake_minimum_required ( VERSION 2.8 )

project ( lua-log NONE )
include ( cmake/dist.cmake )
include ( lua )

install_lua_module ( log                                lua/log.lua                                 )
install_lua_module ( log.formatter.concat               lua/log/formatter/concat.lua                )
install_lua_module ( log.formatter.default              lua/log/formatter/default.lua               )
install_lua_module ( log.formatter.format               lua/log/formatter/format.lua                )
install_lua_module ( log.formatter.pformat              lua/log/formatter/pformat.lua               )
install_lua_module ( log.formatter.mix                  lua/log/formatter/mix.lua                   )
install_lua_module ( log.logformat.default              lua/log/logformat/default.lua               )
install_lua_module ( log.logformat.proxy                lua/log/logformat/proxy.lua                 )
install_lua_module ( log.logformat.proxy.pack           lua/log/logformat/proxy/pack.lua            )
install_lua_module ( log.logformat.syslog               lua/log/logformat/syslog.lua                )
install_lua_module ( log.writer.async._private.server   lua/log/writer/async/_private/server.lua    )
install_lua_module ( log.writer.async.lane              lua/log/writer/async/lane.lua               )
install_lua_module ( log.writer.async.server.lane       lua/log/writer/async/server/lane.lua        )
install_lua_module ( log.writer.async.server.udp        lua/log/writer/async/server/udp.lua         )
install_lua_module ( log.writer.async.server.zmq        lua/log/writer/async/server/zmq.lua         )
install_lua_module ( log.writer.async.udp               lua/log/writer/async/udp.lua                )
install_lua_module ( log.writer.async.zmq               lua/log/writer/async/zmq.lua                )
install_lua_module ( log.writer.console                 lua/log/writer/console.lua                  )
install_lua_module ( log.writer.console.color           lua/log/writer/console/color.lua            )
install_lua_module ( log.writer.file                    lua/log/writer/file.lua                     )
install_lua_module ( log.writer.file.by_day             lua/log/writer/file/by_day.lua              )
install_lua_module ( log.writer.file.private.impl       lua/log/writer/file/private/impl.lua        )
install_lua_module ( log.writer.file.roll               lua/log/writer/file/roll.lua                )
install_lua_module ( log.writer.filter                  lua/log/writer/filter.lua                   )
install_lua_module ( log.writer.filter.lvl.eq           lua/log/writer/filter/lvl/eq.lua            )
install_lua_module ( log.writer.filter.lvl.le           lua/log/writer/filter/lvl/le.lua            )
install_lua_module ( log.writer.format                  lua/log/writer/format.lua                   )
install_lua_module ( log.writer.list                    lua/log/writer/list.lua                     )
install_lua_module ( log.writer.net.server.udp          lua/log/writer/net/server/udp.lua           )
install_lua_module ( log.writer.net.server.zmq          lua/log/writer/net/server/zmq.lua           )
install_lua_module ( log.writer.net.smtp                lua/log/writer/net/smtp.lua                 )
install_lua_module ( log.writer.net.udp                 lua/log/writer/net/udp.lua                  )
install_lua_module ( log.writer.net.zmq                 lua/log/writer/net/zmq.lua                  )
install_lua_module ( log.writer.net.zmq._private.compat lua/log/writer/net/zmq/_private/compat.lua  )
install_lua_module ( log.writer.net.zmq._private.impl   lua/log/writer/net/zmq/_private/impl.lua    )
install_lua_module ( log.writer.net.zmq.pub             lua/log/writer/net/zmq/pub.lua              )
install_lua_module ( log.writer.net.zmq.push            lua/log/writer/net/zmq/push.lua             )
install_lua_module ( log.writer.net.zmq.srv.pub         lua/log/writer/net/zmq/srv/pub.lua          )
install_lua_module ( log.writer.prefix                  lua/log/writer/prefix.lua                   )
install_lua_module ( log.writer.stderr                  lua/log/writer/stderr.lua                   )
install_lua_module ( log.writer.stdout                  lua/log/writer/stdout.lua                   )

install_data ( README.md LICENCE.txt )

install_example ( examples/ )

install_test ( test/ spec/ )
